package com.caiyue.wyymusic.controller;

import com.caiyue.wyymusic.domain.result.ResponseData;
import com.caiyue.wyymusic.service.MCategoryService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;


/**
 * 日期:2018/7/13
 * 作者:yangt
 * 描述:音乐类目controller
 */
@RestController
@RequestMapping("/category")
public class MCategoryController {
    @Autowired
    private MCategoryService mCategoryService;

    /**
     * 音乐类目列表
     *
     * @return ResponseData
     */
    @GetMapping("/queryCategoryList")
    public ResponseData queryCategoryList() {
        ResponseData responseData = mCategoryService.queryAllMCategory();
        return responseData;
    }

}
